package com.yfp.machine.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 设备广告 dto
 *
 *
 * @date 2023/12/28
 */
@Data
public class MachineAdDto {

    @Schema(title = "设备广告id")
    private Long machineAdId;

    @Schema(title = "广告名称")
    private String adName;

    @Schema(title = "设备id")
    private String machineId;

    @Schema(title = "设备编号")
    private String machineSn;

    @Schema(title = "设备名称")
    private String machineName;

    @Schema(title = "设备id")
    private List<String> machineIds;

    @Schema(title = "设备名称")
    private List<String> machineNames;


    @Schema(title = "播放广告屏幕（1：主屏全屏 2：副屏全屏 3：主屏主页 4：副屏主页）")
    private Integer palyAdPosition;

    @Schema(title = "播放广告屏幕（1：主屏全屏 2：副屏全屏 3：主屏主页 4：副屏主页）")
    private String palyAdPositionName;

    @Schema(title = "广告id")
    private String adId;
    /**
     * 广告类型
     */
    @Schema(title = "广告类型")
    private Integer adType;
    /**
     * 播放开始时间
     */
    @Schema(title = "播放开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date palyBeginTime;
    /**
     * 播放结束时间
     */
    @Schema(title = "播放结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date playEndTime;

    @Schema(title = "播放状态（1：未开始 2：播放中 3：已结束）")
    private Integer palyStatus;

    @Schema(title = "播放状态（1：未开始 2：播放中 3：已结束）")
    private String palyStatusName;

    @Schema(title = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Schema(title = "资源id")
    private String resourceId;
    @Schema(title = "广告内容")
    private String adUrl;

    @Schema(title = "操作人")
    private String updateOper;

    @Schema(title = "是否删除")
    private Boolean isDelete;

    @Schema(title = "城市名称")
    private String cityName;
}
